//
//  ViewController.m
//  TemperatureLine
//
//  Created by Chen Heren on 16/8/24.
//  Copyright (c) 2016年 Chen Heren. All rights reserved.
//

#import "ViewController.h"
#import "HRCurveLineView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSArray *XArray = @[@"周一",@"周二",@"周三",@"周四",@"周五",@"周六",@"周日"];
    NSArray *YArray = @[@"-10",@"2",@"13",@"4",@"5",@"6",@"-7"];
    HRCurveLineView *curveLineView = [[HRCurveLineView alloc]initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 200)];
    [curveLineView setuWithXArray:XArray andYArray:YArray];
    [self.view addSubview:curveLineView];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
